package com.ccs.hanke.entity;
/**
 * @author CS_Chan
 */
public class MarketFactory {



    public  Furit getFurit(String furit,int weight){
        if(furit.equals("apple")){
            return new Apple(weight);
        }else if(furit.equals("strawberry")){
            return new Strawberry(weight);
        }else if(furit.equals("mango")) {
            return new Mango(weight) ;
        }else {
            return null;
        }
    }





}
